/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package e.z.blog.back.bean.base;

import java.util.Date;
import java.util.List;
import org.nutz.dao.entity.annotation.*;

/**
 *
 * @author EnzoZhong
 */
@Table( "t_s_blog_bean_essay" )
public class Essay {

        @Id
        @Column
        @Comment( "序列号" )
        private Long essayId;
        @Name
        @Column
        @Comment( "标题" )
        private String essayTitle;
        @Column
        @Comment( "内容" )
        @ColDefine( type = ColType.TEXT )
        private String html;
        @Column
        @Comment( "创建时间" )
        private Date build;
        @Column
        @Comment( "浏览数" )
        private Integer see;
        @Column
        private Integer tabId;
        @One( target = Tab.class , field = "tabId" )
        private Tab tab;
        @ManyMany( target = Tag.class , relation = "t_s_blog_bean_essay_tag" , from = "essayId" , to = "tagId" )
        private List<Tag> tagList;
        @Many( target = New.class , field = "essayId" )
        private List<New> remarkList;
}
